import { ready } from '@/lib/utils';
import { setupPage } from './lib';


(function () {
    ready(() => {
        const path_segs = window.location.pathname.split('/')
        const subject = path_segs[path_segs.length - 2];
        
        setupPage({
            getDataApiUrl: `/api/audit/${subject}/`,
            submitChangedDataApiUrl: '/api/audit/audit',
            columnDefs: [
                {
                    field: "project_name",
                    headerName: gettext("项目名称"),
                    width: 120,
                },
                {
                    field: "project_id",
                    headerName: gettext("项目ID"),
                    width: 120
                },
            ]
        })
    });
})();
